package task;

import java.util.Arrays;

public class Task6_3 {
    public static int[] transform(int[] array){
        int[] a = new int[array.length];
        for (int i = 0; i < array.length; i++) {
            a[i] = array[i] * 2;
        }
        return a;
    }
    public static void main(String[] args) {
        int[] array = {1,2,3,4,5};
        int[] s = transform(array);
        System.out.println(Arrays.toString(s));
    }
}
